@import url(http://fonts.googleapis.com/earlyaccess/amiri.css);

/* 
---------------------------------------------
Bottom to Top Button
--------------------------------------------- 
*/

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1;
  opacity: 0.4;
  font-size: 22px;
  color: white;
  background-color: #7a6ad8;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: none;
  text-align: center;
  line-height: 40px;
}

.back-to-top:hover {
  opacity: 1;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

header {
	background-color: #7a6ad8;
	color: #fff;
	text-align: center;
  max-width: 100%;
	padding: 20px;
	border-radius: 5px 5px 5px 5px;
  margin-top: -10px;
}

.container {
  max-width: 800px; /* limit width on desktop devices */
  margin: 10px auto; /* center container */
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden; /* remove horizontal scroll */
}

h1 {
  font-family: Baskerville, "Baskerville Old Face", "Hoefler Text", Garamond, "Times New Roman", serif;
  margin: 20px;
  font-size: 30px;
  font-weight: bold;
  color: #3e8e41;
  text-shadow: 0.25px 0.25px 1px rgba(0, 0, 0, 0.5);
}

h2 {
    font-family: Baskerville, "Baskerville Old Face", "Hoefler Text", Garamond, "Times New Roman", serif;
    text-align: center;
    margin: 20px auto;
    font-size: 36px;
    font-weight: bold;
    color:#7a6ad8;
    text-shadow: 0.25px 0.25px 1px rgba(0, 0, 0, 0.5);
}

h4 {
  font-family: Baskerville, "Baskerville Old Face", "Hoefler Text", Garamond, "Times New Roman", serif;
  margin-top: -15px;
  margin-bottom: 25px;
  color: #234;
  font-size: 10px;
  text-shadow: 0.25px 0.25px 1px rgba(0, 0, 0, 0.5);
}

h6 {
  text-align: center;
  font-size: 12px;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Add this to your CSS file */
#loading-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
}

.loading-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: #fff;
}

/* Make the container responsive */
.container {
  width: 90%; /* Take full width on mobile devices */
  max-width: 800px; /* Limit width on desktop devices */
}


.container button {
  background-color: #7a6ad8;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 20px;
}

.container button:hover {
  background-color: #6356af;
}

.container input[type="text"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 60% auto;
  margin-bottom: 10px;
}

.container table {
  max-width: 88%;
  border-collapse: collapse;
  margin-top: 20px;
}

.container th, .container td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

/* Row for buttons */
.button-row {
    display: flex;
    justify-content: center;
    gap: 20px; /* Adjust the space between buttons */
}

.container button {
    background-color: #7a6ad8;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
}

.container button:hover {
    background-color: #6356af;
}


.notification {
  background-color: #dff0df;
  padding: 5px 10px;
  border: 1px solid #3e8e41;
  border-radius: 5px;
  font-size: 12px;
  color: #666;
  position: absolute;
  top: 65px;
  right: 10px;
  z-index: 1;
}

.notification.show {
  display: block;
}

footer {
	background-color: #7a6ad8;
	color: #fff;
	text-align: center;
	padding: 10px;
	margin: 20px;
	border-radius: 5px 5px 5px 5px;
  margin-top: 40px;
}


/* Media query for mobile devices */
@media only screen and (max-width: 600px) {
  .container {

    padding: 10px;
  }

  .container input[type="text"] {
    width: 50%; /* Take full width on mobile devices */
  }
  .container button {
    padding: 10px 20px;
    width: 40%; /* Take full width on mobile devices */
  }
  .container table {
    font-size: 9px;
  }
  .container th, .container td {
    padding: 5px;
  }
  h1 {
  margin: 20px;
  font-size: 26px;
  text-align: center;
}
  h2{
    font-size: 30px;
  }
  
}

/* Additional media query for smaller mobile devices */
@media only screen and (max-width: 400px) {
  .container {

    padding: 5px;
  }
  .container input[type="text"] {
    padding: 5px;
  }
  .container button {
    padding: 5px 10px;
  }
  .container table {
    font-size: 9px;
  }
  .container th, .container td {
    padding: 3px;
  }
  h1 {
  margin: 20px;
  font-size: 22px;
  text-align: center;
  }
  h2 {
    font-size: 26px;
}
  
}
